<?php /* Smarty version 2.6.19, created on 2012-12-22 16:57:12
         compiled from vietcad/orderinfo.tpl.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'vietcad/orderinfo.tpl.html', 69, false),array('modifier', 'number_format', 'vietcad/orderinfo.tpl.html', 75, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/header.tpl.html", 'smarty_include_vars' => array('title' => 'header')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
    	<div class="content">
   			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/left.tpl.html", 'smarty_include_vars' => array('title' => 'left')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
        	<div class="cont_right">
           		<div class="main_content">
                	<h2>Xác nhận đơn hàng</h2>
                      
                    <div class="details">
                       <div class="formType">
    <form action="" method="post" name="formOrder" id="formOrder">
        <fieldset>
            <div class="infoType3">
                <div>
                    <h2 style="font-weight:bold; font-size:13px"><?php echo $this->_tpl_vars['messages']['cInformation']; ?>
</h2>
                    <p>
                        <label for="name"><?php echo $this->_tpl_vars['messages']['cus_name']; ?>
:&nbsp;</label><?php echo $this->_tpl_vars['order']['name']; ?>
</p>
                    <p>
                        <label for="email"><?php echo $this->_tpl_vars['messages']['email']; ?>
:&nbsp;</label><?php echo $this->_tpl_vars['order']['email']; ?>
</p>
                    <p>
                        <label for="address"><?php echo $this->_tpl_vars['messages']['address']; ?>
:&nbsp;</label><?php echo $this->_tpl_vars['order']['address']; ?>
</p>
                    <p>
                        <label for="tel"><?php echo $this->_tpl_vars['messages']['tel']; ?>
:&nbsp;</label><?php echo $this->_tpl_vars['order']['tel']; ?>
</p>
                    <p>
                        <label for="cell"><?php echo $this->_tpl_vars['messages']['cel']; ?>
:&nbsp;</label><?php echo $this->_tpl_vars['order']['cell']; ?>
</p>
                    <p class="btnEdit">
                        <!--<input type="button" id="btnLogin" name="btnLogin" title="Edit" value="Edit"
                        onClick="document.formOrder.plus.value='editOrder'; document.formOrder.submit();"
                        />-->
                        <!-- <a href="#" title="Edit" onClick="document.formOrder.plus.value='editOrder';
                        document.formOrder.submit();"><span><?php echo $this->_tpl_vars['messages']['edit']; ?>
</span></a>-->
                    </p>
                </div>
                <div>
                    <h2 style="font-weight:bold; font-size:13px"><?php echo $this->_tpl_vars['messages']['rInformation']; ?>
</h2>
                    <p>
                        <label for="name"><?php echo $this->_tpl_vars['messages']['rname']; ?>
:&nbsp;</label><?php echo $this->_tpl_vars['order']['rname']; ?>
</p>
                    <p>
                        <label for="date"><?php echo $this->_tpl_vars['messages']['rdate']; ?>
:&nbsp;</label><?php if ($this->_tpl_vars['order']['rdate']): ?><?php echo $this->_tpl_vars['order']['rdate']; ?>
<?php else: ?><?php echo $this->_tpl_vars['order']['day']; ?>
/<?php echo $this->_tpl_vars['order']['month']; ?>
/<?php echo $this->_tpl_vars['order']['year']; ?>
<?php endif; ?></p>
                    <p>
                        <label for="address"><?php echo $this->_tpl_vars['messages']['raddress']; ?>
:&nbsp;</label><?php echo $this->_tpl_vars['order']['raddress']; ?>
</p>
                    <p>
                        <label for="tel"><?php echo $this->_tpl_vars['messages']['rtel']; ?>
:&nbsp;</label><?php echo $this->_tpl_vars['order']['rtel']; ?>
</p>
                    <p>
                        <label for="cell"><?php echo $this->_tpl_vars['messages']['rcel']; ?>
:&nbsp;</label><?php echo $this->_tpl_vars['order']['rcell']; ?>
</p>
                    <p class="btnEdit">
                        <!--<input type="button" id="btnLogin" name="btnLogin" title="Edit" value="Edit"
                        onClick="document.formOrder.plus.value='editOrder'; document.formOrder.submit();"
                        />-->
                        <!--<a href="#" title="Edit" onClick="document.formOrder.plus.value='editOrder';
                        document.formOrder.submit();"><span><?php echo $this->_tpl_vars['messages']['edit']; ?>
</span></a>-->
                    </p>
                </div>
            </div>
            <h2 style="font-weight:bold; font-size:13px; padding:10px 0px; background:none; color:#004F7E"><?php echo $this->_tpl_vars['messages']['pInformation']; ?>
</h2><?php if ($this->_tpl_vars['cartItems']): ?>
            <div class="shoppingBag">
                <table width="100%" border="0" cellspacing="1" cellpadding="0">
                    <tr>
                        <th>STT</th>
                        <th><?php echo $this->_tpl_vars['messages']['pInformation']; ?>
</th>
                        <th><?php echo $this->_tpl_vars['messages']['images']; ?>
</th>
                        <th><?php echo $this->_tpl_vars['messages']['quantity']; ?>
</th>
                        <th><?php echo $this->_tpl_vars['messages']['price']; ?>
 (VNĐ)</th>
                        <th><?php echo $this->_tpl_vars['messages']['total']; ?>
 (VNĐ)</th>
                    </tr><?php $this->assign('i', 0); ?> <?php $_from = $this->_tpl_vars['cartItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['cartItem']):
?> <?php $this->assign('product', $this->_tpl_vars['products']->getObject($this->_tpl_vars['cartItem']->getPId())); ?> <?php if ($this->_tpl_vars['product']): ?>
                    <?php $this->assign('i', $this->_tpl_vars['i']+1); ?>
                    <td><?php echo $this->_tpl_vars['i']; ?>
</td>
                    <td>Mã sản phẩm:<?php echo $this->_tpl_vars['product']->getId(); ?>

                        <br/><?php echo ((is_array($_tmp=$this->_tpl_vars['product']->getName())) ? $this->_run_mod_handler('truncate', true, $_tmp, 50) : smarty_modifier_truncate($_tmp, 50)); ?>
</td>
                    <td>
                        <img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/gallery/avatar_upload/products/avatar/<?php echo $this->_tpl_vars['product']->getAvatar(); ?>
"
                        alt="" style="max-width:120px; max-height:80px;" />
                    </td>
                    <td><?php echo $this->_tpl_vars['cartItem']->getQuantity(); ?>
</td>
                    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['product']->getPrice())) ? $this->_run_mod_handler('number_format', true, $_tmp, 0, ",", ".") : number_format($_tmp, 0, ",", ".")); ?>
</td><?php $this->assign('price', $this->_tpl_vars['product']->getPrice()); ?>
                    <?php $this->assign('quantity', $this->_tpl_vars['cartItem']->getQuantity()); ?> <?php $this->assign('subTotal', $this->_tpl_vars['quantity']*$this->_tpl_vars['price']); ?> <?php $this->assign('grandTotal', $this->_tpl_vars['grandTotal']+$this->_tpl_vars['subTotal']); ?>
                    <td><?php echo ((is_array($_tmp=$this->_tpl_vars['subTotal'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 0, ",", ".") : number_format($_tmp, 0, ",", ".")); ?>
</td>
                    </tr><?php endif; ?> <?php endforeach; endif; unset($_from); ?></table>
                <div class="total">
                    <p>
                        <span><?php echo $this->_tpl_vars['messages']['price']; ?>
: <?php echo ((is_array($_tmp=$this->_tpl_vars['grandTotal'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 0, ",", ".") : number_format($_tmp, 0, ",", ".")); ?>
 (VNĐ)</span></p>
                    <p>------------------------------------------------------</p>
                    <p>
                        <span><?php echo $this->_tpl_vars['messages']['total']; ?>
: <?php echo ((is_array($_tmp=$this->_tpl_vars['grandTotal'])) ? $this->_run_mod_handler('number_format', true, $_tmp, 0, ",", ".") : number_format($_tmp, 0, ",", ".")); ?>
 (VNĐ)</span><br />(Giá đã bao gồm VAT)</p>
                </div><?php endif; ?></div>
            <p class="btn2">
                <span class="btnType2">
                    <input type="submit" id="btnLogin" name="btnLogin" title="<?php echo $this->_tpl_vars['messages']['continueorder']; ?>
"
                    value="<?php echo $this->_tpl_vars['messages']['continueorder']; ?>
" />
                </span>
                <span class="btnType2">
                    <input type="button" id="edit" name="edit" title="<?php echo $this->_tpl_vars['messages']['edit']; ?>
" value="<?php echo $this->_tpl_vars['messages']['edit']; ?>
"
                    onClick="document.formOrder.plus.value='editOrder'; document.formOrder.submit();"
                    />
                    <input type="hidden" name="op" id="op" value="order" class="hidden" />
                    <input type="hidden" name="lang" id="lang" value="<?php echo $this->_tpl_vars['lang']; ?>
" class="hidden"
                    />
                    <input type="hidden" name="plus" id="plus" value="submitOrder" class="hidden"
                    />
                    <input type="hidden" id="name" name="name" value="<?php echo $this->_tpl_vars['order']['name']; ?>
" class="hidden"
                    />
                    <input type="hidden" id="email" name="email" value="<?php echo $this->_tpl_vars['order']['email']; ?>
" class="hidden"
                    />
                    <input type="hidden" id="address" name="address" value="<?php echo $this->_tpl_vars['order']['address']; ?>
"
                    class="hidden" />
                    <input type="hidden" id="tel" name="tel" value="<?php echo $this->_tpl_vars['order']['tel']; ?>
" class="hidden"
                    />
                    <input type="hidden" id="cell" name="cell" value="<?php echo $this->_tpl_vars['order']['cell']; ?>
" class="hidden"
                    />
                    <input type="hidden" id="rname" name="rname" value="<?php echo $this->_tpl_vars['order']['rname']; ?>
" class="hidden"
                    />
                    <input type="hidden" id="raddress" name="raddress" value="<?php echo $this->_tpl_vars['order']['raddress']; ?>
"
                    class="hidden" />
                    <input type="hidden" id="rtel" name="rtel" value="<?php echo $this->_tpl_vars['order']['rtel']; ?>
" class="hidden"
                    />
                    <input type="hidden" id="rcell" name="rcell" value="<?php echo $this->_tpl_vars['order']['rcell']; ?>
" class="hidden"
                    />
                    <input type="hidden" id="delivery" name="delivery" value="<?php echo $this->_tpl_vars['order']['delivery']; ?>
"
                    class="hidden" />
                    <input type="hidden" id="rdate" name="rdate" value="<?php echo $this->_tpl_vars['order']['year']; ?>
-<?php echo $this->_tpl_vars['order']['month']; ?>
-<?php echo $this->_tpl_vars['order']['day']; ?>
"
                    class="hidden" />
                </span>
            </p>
            <p>&nbsp;</p>
        </fieldset>
    </form>
</div> 
                    </div>
                </div>
  			 </div>
   		</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/footer.tpl.html", 'smarty_include_vars' => array('title' => 'footer')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 